package com.ncu702.backend.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ncu702.backend.model.dto.articles.ArticleVo;
import com.ncu702.backend.model.entity.Article;
import org.springframework.stereotype.Service;

import java.util.List;

public interface RewardService extends IService<Article> {


    //获取所有需求文章
    List<ArticleVo> getAllReward();


    //将当前文章设置为需求文章
    Integer addReward(String articleId,Integer money);


    //将当前文章取消设置为需求文章
    Integer deleteReward(String articleId);

}
